package day52.system.mapper;

import day52.system.domain.Role;
import day52.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Huang
 * @since 2022-12-26
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {


    void addRoleMenu(@Param("rid") Long id, @Param("mids") List<Long> menus);

    void addRolePermission(@Param("rid")Long id, @Param("pids") List<Long> permissions);

}
